//
//  SINATecManaScoreInputTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/3/6.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINATecManaScoreInputTableViewCell.h"


@interface SINATecManaScoreInputTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *stuNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *stuScoreLabel;

@end

@implementation SINATecManaScoreInputTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(SINASubClassModel *)model{
    _model = model;
    
    if (self.itemClickBlock) {
        [[SINAUiviewClickLiserner alloc]viewClickFunction:self.contentView andWithBlick:^(UIView *view) {
            self.itemClickBlock(self.pos,self.model);
        }];
    }
    
    
    self.stuNameLabel.text=model.realname;
    NSInteger score=model.score;
    NSString *statues = model.status;
    NSString *scoreStr =[NSString stringWithFormat:@"%ld",score];
    if (statues==nil||[statues isEqualToString:@""]||[statues isEqualToString:@"(null)"]) {
        scoreStr=@"请输入成绩";
    }else{
        scoreStr =[NSString stringWithFormat:@"%ld",score];
    }
    //请输入成绩
    self.stuScoreLabel.text=[NSString stringWithFormat:@"%@",scoreStr];
    
}

@end
